﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package reprise.core {
    import reprise.external.*;
    import reprise.css.*;

    public class CoreResourceLoader extends ResourceLoader {

        protected var m_appContext:ApplicationContext;

        public function CoreResourceLoader(_arg1:ApplicationContext){
            m_appContext = _arg1;
        }
        protected function rewriteURLOfResource(_arg1:IResource):void{
            _arg1.setURL(CSSParsingHelper.resolvePathAgainstPath(_arg1.url(), m_appContext.applicationURL));
        }
        override public function addResource(_arg1:IResource):void{
            rewriteURLOfResource(_arg1);
            super.addResource(_arg1);
        }

    }
}//package reprise.core 
